//
//  HttpRequest.h
//  Xspcf
//
//  Created by 小小算盘 on 16/1/22.
//  Copyright © 2016年 小小算盘. All rights reserved.
//

#import <Foundation/Foundation.h>
typedef void (^SuccessBlock)(id requestDic,NSString *msg);
typedef void (^ErrorBlock)(NSString *errorInfo,int code);
typedef void (^sucessXieYiBlock)(id *respons);
@interface HttpRequest : NSObject
+ (void)postURL:(NSString *)urlStr withParam:(NSDictionary *)dic success:(SuccessBlock)success failure:(ErrorBlock)failure;



+(void)postLoginRequestCacheURLStr:(NSString *)urlStr withParameter:(NSDictionary *)dic HaveAccessID:(BOOL)aAccessID IsHTML:(BOOL)aHtml success:(SuccessBlock)success failure:(ErrorBlock)failure;
+(void)postRequestCacheURLStr:(NSString *)urlStr withParameter:(NSString *)parameters HaveAccessID:(BOOL)aAccessID IsHTML:(BOOL)aHtml success:(SuccessBlock)success failure:(ErrorBlock)failure;
+(BOOL)requestBeforeCheckNetWork ;
+(void)postRequestXieyiURLStr:(NSString *)urlStr withParameter:(NSString *)parameters HaveAccessID:(BOOL)aAccessID IsHTML:(BOOL)aHtml success:(void(^)(id))aBlock;
@end
